import http from '@/common/js/httpRequest'

//查询超期请验单数据
export function queryCheckDelay(params) {
	return http({
		method: 'post',
		url: '/api/table/checkDelay',
		data: params
	})
}

//创建检验周期
export function cycle(params) {
	return http({
		method: 'post',
		url: '/api/table/cycle',
		data: params
	})
}

//查询检验周期
export function cycles(params) {
	return http({
		method: 'post',
		url: '/api/table/cycles',
		data: params
	})
}

//删除一个周期规则
export function delCycle(id) {
	return http({
		method: 'delete',
		url: '/api/table/cycle/' + id
	})
}


//查询稳考计划排期结果
export function planResult(params) {
	return http({
		method: 'post',
		url: '/api/table/planResult',
		data: params
	})
}

//初始化下拉选框
export function initSelect() {
	return http({
		method: 'get',
		url: '/api/table/initSelect'
	})
}

//水取样点记录查询
export function workShopWaterGet(params) {
	return http({
		method: 'post',
		url: '/api/table/workShopWaterGet',
		data: params
	})
}

//报表类访问量统计
export function visit(name) {
	return http({
		method: 'get',
		url: '/api/visits/add/' + name
	})
}

//查询原辅包检验数据
export function yfbCheckData(params) {
	return http({
		method: 'post',
		url: '/api/yfbCheckTable/queryData',
		data: params

	})
}

//原辅包检验台账导出
export function yfbExport(productId) {
	return http({
		method: 'get',
		url: '/api/yfbCheckTable/export/' + productId,
		responseType: 'blob'
	})
}

//查询中成检验数据
export function zcCheckData(params) {
	return http({
		method: 'post',
		url: '/api/zcCheckTable/queryData',
		data: params

	})
}
